package com.gxa.user.recycling.service.impl;


import com.gxa.core.recycling.pojo.Banner;
import com.gxa.user.recycling.dao.BannerDao;
import com.gxa.user.recycling.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("bannerService")
public class BannerServiceImpl implements BannerService {
    @Autowired
    private BannerDao bannerDao;
    @Override
    public List<Banner> findAll(Banner banner) {
        return bannerDao.find(banner);
    }

    @Override
    public List<Banner> findAllList() {
        return bannerDao.findAll();
    }

    @Override
    public void insertOrUpdate(Banner banner) {
        bannerDao.insertOrUpdate(banner);
    }
}
